package com.example.usermanagement.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.List;

//分页返回结果对象
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean<T> {

    private Long total; //总条数
    private List<T> items;  //当前页数据集合

    public Collection<Object> getList() {
        return (Collection<Object>) items;
    }
}
